package com.hckj.jianzhijia.popupwindows;

import android.content.Context;
import android.view.View;

/**
 * Created by 赵奇隆 on 2016-03-14.
 * 这个是推送列表的点击弹出的对话框
 */
public class PushLongClickPopWin extends ListPopupWindow {

    public static final String[] data = {"取消申请"};
    private PopWinInterface popWinInterface;
    private int listPosition;

    public PushLongClickPopWin(Context context, PopWinInterface popWinInterface, View parentView,int listPosition) {
        super(context, parentView, null, data);
        this.popWinInterface = popWinInterface;
        this.listPosition = listPosition;
    }



    @Override
    public void getListItem(int position, String itemName) {
        if(position==0){
            popWinInterface.cancelPushApplication(listPosition);
        }
    }

    public interface PopWinInterface {
        public void cancelPushApplication(int position);

    }





}
